package com.tentative.competition.common.model.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(description = "提交结果返回")
@Data
@Accessors(chain = true)
public class ClientSubmitResultResp {
    public ClientSubmitResultResp() {
    }

    public ClientSubmitResultResp(String offerId, Boolean success, Integer index, String errorMsg) {
        this.offerId = offerId;
        this.success = success;
        this.index = index;
        this.errorMsg = errorMsg;
    }

    @ApiModelProperty("异常的商品ID")
    private String offerId;

    @ApiModelProperty("是否成功")
    private Boolean success;

    @ApiModelProperty("传入的集合顺序下标")
    private Integer index;

    @ApiModelProperty("失败内容")
    private String errorMsg;
}
